package entity;

import java.util.Date;

public class News {
	private int newsId;
	private String title;
	private String content;
	private Date publishDate;
	private Admin admin;
	public int getNewsId() {
		return newsId;
	}
	public void setNewsId(int newsId) {
		this.newsId = newsId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	public Admin getAdmin() {
		return admin;
	}
	public void setAdmin(Admin admin) {
		this.admin = admin;
	}
	public News() {
		super();
		// TODO Auto-generated constructor stub
	}
	public News(int newsId, String title, String content, Date publishDate, Admin admin) {
		super();
		this.newsId = newsId;
		this.title = title;
		this.content = content;
		this.publishDate = publishDate;
		this.admin = admin;
	}
	
	
}
